package com.th.supcom.pds.domain.pojo;

import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 * PhamStockOnwayTable Pojo对象.
 * 
 * 本表用于记录每库房每库存药品（品、规、厂商为主键）。包装、批次、有效期等质量与库存流通管理的信息。
2014-03-19 经商量去除入库单相关信息字段。.
 */
public class PhamStockOnwayTable implements java.io.Serializable
{
	private static final long serialVersionUID = 1L;
	
    /** 库存在途ID.*/
    private Long m_stockOnwayId; 
       
    /** 出库单号.*/
    private String m_inoutNumber; 
       
    /** 库存在途机构.*/
    private String m_deptCode; 
       
    /** 药品ID.*/
    private String m_phamStdCode; 
       
    /** 厂家名称.*/
    private String m_phamFactoryName; 
       
    /** 批次号.*/
    private String m_phamBatchNumber; 
       
    /** 有效期.*/
    private Date m_expireDate; 
       
    /** 入库单位.*/
    private String m_packQuantityUnit; 
       
    /** 入库单位与基本单位换算系数.*/
    private Double m_factor; 
       
    /** 其它单位换算关系描述.*/
    private String m_factorDes; 
       
    /** 单位（基本单位数量）.*/
    private String m_unit; 
       
    /** 数量(基本数量).*/
    private Long m_quantity; 
       
    /** 备注.*/
    private String m_note; 
       
    /** 发货方机构.*/
    private String m_deliverOrg; 
       
    
    /**
     * 默认构造器 .
     */
    public PhamStockOnwayTable ()
    {
    }
    
   /**
     * 获取库存在途ID属性.
     * 
     */
    public Long getStockOnwayId ()
    {
        return m_stockOnwayId;
    }
    
    /**
     * 设置库存在途ID属性.
     * @param stockOnwayId.
     */
    public void setStockOnwayId (Long stockOnwayId)
    {
        m_stockOnwayId = stockOnwayId;
    }    
   /**
     * 获取出库单号属性.
     * 
     */
    public String getInoutNumber ()
    {
        return m_inoutNumber;
    }
    
    /**
     * 设置出库单号属性.
     * @param inoutNumber.
     */
    public void setInoutNumber (String inoutNumber)
    {
        m_inoutNumber = inoutNumber;
    }    
   /**
     * 获取库存在途机构属性.
     * 
     */
    public String getDeptCode ()
    {
        return m_deptCode;
    }
    
    /**
     * 设置库存在途机构属性.
     * @param deptCode.
     */
    public void setDeptCode (String deptCode)
    {
        m_deptCode = deptCode;
    }    
   /**
     * 获取药品ID属性.
     * 
     */
    public String getPhamStdCode ()
    {
        return m_phamStdCode;
    }
    
    /**
     * 设置药品ID属性.
     * @param phamStdCode.
     */
    public void setPhamStdCode (String phamStdCode)
    {
        m_phamStdCode = phamStdCode;
    }    
   /**
     * 获取厂家名称属性.
     * 
     */
    public String getPhamFactoryName ()
    {
        return m_phamFactoryName;
    }
    
    /**
     * 设置厂家名称属性.
     * @param phamFactoryName.
     */
    public void setPhamFactoryName (String phamFactoryName)
    {
        m_phamFactoryName = phamFactoryName;
    }    
   /**
     * 获取批次号属性.
     * 
     */
    public String getPhamBatchNumber ()
    {
        return m_phamBatchNumber;
    }
    
    /**
     * 设置批次号属性.
     * @param phamBatchNumber.
     */
    public void setPhamBatchNumber (String phamBatchNumber)
    {
        m_phamBatchNumber = phamBatchNumber;
    }    
   /**
     * 获取有效期属性.
     * 
     */
    public Date getExpireDate ()
    {
    	if(m_expireDate == null)
    	{
    		return null;
    	}
        return (Date)m_expireDate.clone();
    }
    
    /**
     * 设置有效期属性.
     * @param expireDate.
     */
    public void setExpireDate (Date expireDate)
    {
    	if(expireDate == null)
    	{
    		m_expireDate = null;
    	}else{
    	    m_expireDate = (Date)expireDate.clone();	        
    	}
    }            
   /**
     * 获取入库单位属性.
     * 
     */
    public String getPackQuantityUnit ()
    {
        return m_packQuantityUnit;
    }
    
    /**
     * 设置入库单位属性.
     * @param packQuantityUnit.
     */
    public void setPackQuantityUnit (String packQuantityUnit)
    {
        m_packQuantityUnit = packQuantityUnit;
    }    
   /**
     * 获取入库单位与基本单位换算系数属性.
     * 
     */
    public Double getFactor ()
    {
        return m_factor;
    }
    
    /**
     * 设置入库单位与基本单位换算系数属性.
     * @param factor.
     */
    public void setFactor (Double factor)
    {
        m_factor = factor;
    }    
   /**
     * 获取其它单位换算关系描述属性.
     * 
     */
    public String getFactorDes ()
    {
        return m_factorDes;
    }
    
    /**
     * 设置其它单位换算关系描述属性.
     * @param factorDes.
     */
    public void setFactorDes (String factorDes)
    {
        m_factorDes = factorDes;
    }    
   /**
     * 获取单位（基本单位数量）属性.
     * 
     */
    public String getUnit ()
    {
        return m_unit;
    }
    
    /**
     * 设置单位（基本单位数量）属性.
     * @param unit.
     */
    public void setUnit (String unit)
    {
        m_unit = unit;
    }    
   /**
     * 获取数量(基本数量)属性.
     * 
     */
    public Long getQuantity ()
    {
        return m_quantity;
    }
    
    /**
     * 设置数量(基本数量)属性.
     * @param quantity.
     */
    public void setQuantity (Long quantity)
    {
        m_quantity = quantity;
    }    
   /**
     * 获取备注属性.
     * 
     */
    public String getNote ()
    {
        return m_note;
    }
    
    /**
     * 设置备注属性.
     * @param note.
     */
    public void setNote (String note)
    {
        m_note = note;
    }    
   /**
     * 获取发货方机构属性.
     * 
     */
    public String getDeliverOrg ()
    {
        return m_deliverOrg;
    }
    
    /**
     * 设置发货方机构属性.
     * @param deliverOrg.
     */
    public void setDeliverOrg (String deliverOrg)
    {
        m_deliverOrg = deliverOrg;
    }    
    /**
     * 打印字符串.
     *
     * @return 打印.
     */
    public String toString ()
    {
        StringBuffer sb = new StringBuffer (100);
        sb.append ("---------------------------------- start ----------------------------------");
        sb.append ("stockOnwayId:" + m_stockOnwayId + " inoutNumber:" + m_inoutNumber + 
			" deptCode:" + m_deptCode); 
		sb.append ("phamStdCode:" + m_phamStdCode + " phamFactoryName:" + m_phamFactoryName + 
			" phamBatchNumber:" + m_phamBatchNumber); 
		sb.append ("expireDate:" + m_expireDate + " packQuantityUnit:" + m_packQuantityUnit + 
			" factor:" + m_factor); 
		sb.append ("factorDes:" + m_factorDes + " unit:" + m_unit + 
			" quantity:" + m_quantity); 
		sb.append ("note:" + m_note + " deliverOrg:" + m_deliverOrg);  

        sb.append ("----------------------------------  end  ----------------------------------"); 
        return sb.toString ();
    }
    
    
    /** 日志记录器. */
    public static final Logger s_logger = LoggerFactory.getLogger(PhamStockOnwayTable.class);
     
    /** 公司版权信息. */
    public static final String copyright = "Copyright 2015, TH Supcom Corporation";
    
    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";
    
    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";
    
    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";
    
    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
}